/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cult.ticketing.bean;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 *
 * @author yo
 */
public class test {
    public static void main(String [] args){


        String a = "1,2;3,4;5,6;7,8";
        String b="3,4";
        int index = a.indexOf(b);
        String sub = a.substring(0, index - 1);
        String sub2 = a.substring(index + 4);
        String concat = sub + ";" + sub2;

        int tmp = a.indexOf(b);
        System.out.println(concat);

    }
}
